<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>人际关系筛选 - 友趣社交</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4361ee;
            --primary-light: #7209b7;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --light-gray: #e9ecef;
            --success: #38b000;
            --danger: #e63946;
            --warning: #ffb703;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            padding: 0.8rem 1rem;
        }
        
        .navbar-brand {
            color: var(--primary);
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.4rem;
        }
        
        .nav-link {
            color: var(--dark);
            font-weight: 500;
            margin: 0 5px;
            transition: var(--transition);
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--primary);
        }
        
        .connections-container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .section-description {
            color: var(--gray);
            max-width: 800px;
        }
        
        /* 筛选器样式 */
        .filter-container {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
        }
        
        .filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--light-gray);
        }
        
        .filter-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark);
        }
        
        .filter-toggle {
            color: var(--primary);
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: 500;
            cursor: pointer;
        }
        
        .filter-content {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }
        
        .filter-group {
            margin-bottom: 1rem;
        }
        
        .filter-label {
            display: block;
            margin-bottom: 0.75rem;
            font-weight: 600;
            color: var(--dark);
        }
        
        .filter-input, .filter-select, .filter-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-size: 1rem;
            transition: var(--transition);
        }
        
        .filter-input:focus, .filter-select:focus, .filter-textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        }
        
        /* 范围滑块样式 */
        .range-slider {
            width: 100%;
            margin: 1rem 0;
        }
        
        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        /* 复选框和单选框样式 */
        .checkbox-group, .radio-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .checkbox-item, .radio-item {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }
        
        .checkbox-item input, .radio-item input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }
        
        /* 标签筛选样式 */
        .tag-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }
        
        .filter-tag {
            background-color: var(--light);
            border: 1px solid var(--light-gray);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .filter-tag:hover, .filter-tag.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 筛选动作按钮 */
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--light-gray);
        }
        
        /* 保存的筛选器 */
        .saved-filters {
            background-color: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            margin-bottom: 2rem;
        }
        
        .saved-filters-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .saved-filters-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .saved-filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .saved-filter-tag {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            border-radius: 20px;
            padding: 6px 16px;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .saved-filter-tag:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 结果统计 */
        .results-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .results-count {
            color: var(--gray);
            font-size: 0.95rem;
        }
        
        .results-sort {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .sort-label {
            font-size: 0.95rem;
            color: var(--gray);
        }
        
        .sort-select {
            padding: 5px 10px;
            border-radius: 6px;
            border: 1px solid var(--light-gray);
        }
        
        /* 人际关系列表 */
        .connections-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        .connection-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }
        
        .connection-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .card-header {
            height: 180px;
            position: relative;
            overflow: hidden;
        }
        
        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .no-image {
            width: 100%;
            height: 100%;
            background-color: var(--light-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 3rem;
        }
        
        .card-content {
            padding: 1.5rem;
        }
        
        .card-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-weight: 600;
            margin-bottom: 2px;
        }
        
        .user-title {
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .connection-type {
            background-color: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            font-size: 0.8rem;
            padding: 3px 8px;
            border-radius: 4px;
        }
        
        .card-body {
            margin-bottom: 1rem;
        }
        
        .similarity {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 500;
            background-color: rgba(56, 176, 0, 0.1);
            color: var(--success);
            margin-bottom: 0.75rem;
        }
        
        .card-text {
            color: var(--gray);
            font-size: 0.95rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .interests {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }
        
        .interest-tag {
            background-color: var(--light);
            font-size: 0.8rem;
            padding: 3px 10px;
            border-radius: 12px;
            color: var(--gray);
        }
        
        .card-stats {
            display: flex;
            justify-content: space-between;
            color: var(--gray);
            font-size: 0.85rem;
            margin-bottom: 1rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .card-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: var(--secondary);
            border-color: var(--secondary);
        }
        
        .btn-outline-primary {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 分页样式 */
        .pagination-container {
            display: flex;
            justify-content: center;
            margin-top: 3rem;
        }
        
        .pagination {
            display: flex;
            gap: 5px;
        }
        
        .page-item {
            list-style: none;
        }
        
        .page-link {
            display: block;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
            background-color: white;
            color: var(--dark);
            text-align: center;
            line-height: 36px;
            text-decoration: none;
            transition: var(--transition);
        }
        
        .page-link:hover {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .page-link.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .filter-content {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .filter-content {
                grid-template-columns: 1fr;
            }
            
            .filter-actions {
                flex-direction: column;
            }
            
            .filter-actions .btn {
                width: 100%;
            }
            
            .results-stats {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
        }
        
        /* 页脚样式 */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 5rem;
        }
        
        .footer-col {
            margin-bottom: 2rem;
        }
        
        .footer-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.5rem;
        }
        
        .footer-links a {
            color: var(--light-gray);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--light-gray);
            font-size: 0.9rem;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users"></i>
                <span>友趣</span>
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">人际关系</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣小组</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">活动中心</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">消息</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3">
                    <div class="dropdown">
                        <button class="btn btn-secondary dropdown-toggle rounded-circle" type="button" data-bs-toggle="dropdown">
                            <img src="https://picsum.photos/id/64/40/40" alt="用户头像" width="36" height="36" class="rounded-circle">
                        </button>
                        <ul class="dropdown-menu dropdown-menu-end">
                            <li><a class="dropdown-item" href="#">个人主页</a></li>
                            <li><a class="dropdown-item" href="#">我的好友</a></li>
                            <li><a class="dropdown-item" href="#">设置</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </nav>

    <!-- 主要内容 -->
    <div class="container connections-container">
        <!-- 页面标题 -->
        <div class="section-header">
            <h1 class="section-title">人际关系列表</h1>
            <p class="section-description">通过多种筛选条件，找到你感兴趣的人，扩展你的社交圈。根据不同的关系类型、兴趣爱好和其他条件进行精确筛选。</p>
        </div>
        
        <!-- 保存的筛选器 -->
        <div class="saved-filters">
            <div class="saved-filters-header">
                <h3 class="saved-filters-title">常用筛选</h3>
                <button class="btn btn-sm btn-outline-primary">
                    <i class="fas fa-plus"></i> 保存当前筛选
                </button>
            </div>
            <div class="saved-filter-tags">
                <div class="saved-filter-tag">
                    <i class="fas fa-music"></i> 音乐爱好者 <i class="fas fa-times"></i>
                </div>
                <div class="saved-filter-tag">
                    <i class="fas fa-map-marker-alt"></i> 附近5公里 <i class="fas fa-times"></i>
                </div>
                <div class="saved-filter-tag">
                    <i class="fas fa-graduation-cap"></i> 同校校友 <i class="fas fa-times"></i>
                </div>
                <div class="saved-filter-tag">
                    <i class="fas fa-briefcase"></i> 同行业人士 <i class="fas fa-times"></i>
                </div>
            </div>
        </div>
        
        <!-- 高级筛选器 -->
        <div class="filter-container">
            <div class="filter-header">
                <h3 class="filter-title">高级筛选</h3>
                <button class="filter-toggle" id="filterToggle">
                    <i class="fas fa-chevron-up"></i>
                    <span>收起筛选</span>
                </button>
            </div>
            
            <div class="filter-content" id="filterContent">
                <!-- 基本信息筛选 -->
                <div class="filter-group">
                    <label class="filter-label">关系类型</label>
                    <div class="radio-group">
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="allRelations" checked>
                            <label for="allRelations">全部关系</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="potentialFriends">
                            <label for="potentialFriends">潜在好友</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="friendsOfFriends">
                            <label for="friendsOfFriends">好友的好友</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="sameGroups">
                            <label for="sameGroups">同小组成员</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="colleagues">
                            <label for="colleagues">同事</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="relationType" id="schoolmates">
                            <label for="schoolmates">校友</label>
                        </div>
                    </div>
                </div>
                
                <!-- 位置筛选 -->
                <div class="filter-group">
                    <label class="filter-label">位置范围</label>
                    <select class="filter-select">
                        <option value="anywhere">不限位置</option>
                        <option value="current">当前城市</option>
                        <option value="1km">1公里内</option>
                        <option value="5km" selected>5公里内</option>
                        <option value="10km">10公里内</option>
                        <option value="50km">50公里内</option>
                        <option value="custom">自定义城市</option>
                    </select>
                    
                    <div class="filter-group" style="margin-top: 1rem;">
                        <label class="filter-label">距离范围</label>
                        <input type="range" min="1" max="100" value="5" class="range-slider" id="distanceRange">
                        <div class="range-labels">
                            <span>1公里</span>
                            <span id="rangeValue">5公里</span>
                            <span>100公里</span>
                        </div>
                    </div>
                </div>
                
                <!-- 兴趣爱好筛选 -->
                <div class="filter-group">
                    <label class="filter-label">兴趣爱好</label>
                    <div class="tag-filter">
                        <div class="filter-tag active">
                            <i class="fas fa-music"></i> 音乐
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-book"></i> 阅读
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-film"></i> 电影
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-hiking"></i> 户外
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-utensils"></i> 美食
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-paint-brush"></i> 艺术
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-gamepad"></i> 游戏
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-running"></i> 运动
                        </div>
                        <div class="filter-tag">
                            <i class="fas fa-code"></i> 编程
                        </div>
                    </div>
                </div>
                
                <!-- 人口统计学筛选 -->
                <div class="filter-group">
                    <label class="filter-label">年龄段</label>
                    <select class="filter-select">
                        <option value="any">不限年龄</option>
                        <option value="18-24">18-24岁</option>
                        <option value="25-30">25-30岁</option>
                        <option value="31-40">31-40岁</option>
                        <option value="41-50">41-50岁</option>
                        <option value="50+">50岁以上</option>
                    </select>
                    
                    <div class="filter-group" style="margin-top: 1rem;">
                        <label class="filter-label">性别</label>
                        <select class="filter-select">
                            <option value="any" selected>不限</option>
                            <option value="male">男</option>
                            <option value="female">女</option>
                            <option value="other">其他</option>
                        </select>
                    </div>
                </div>
                
                <!-- 职业与教育筛选 -->
                <div class="filter-group">
                    <label class="filter-label">职业类型</label>
                    <select class="filter-select">
                        <option value="any" selected>不限职业</option>
                        <option value="student">学生</option>
                        <option value="education">教育工作者</option>
                        <option value="it">IT/互联网</option>
                        <option value="business">商业/金融</option>
                        <option value="art">艺术/创意</option>
                        <option value="medical">医疗/健康</option>
                        <option value="service">服务行业</option>
                        <option value="government">政府/公共事业</option>
                    </select>
                    
                    <div class="filter-group" style="margin-top: 1rem;">
                        <label class="filter-label">教育程度</label>
                        <select class="filter-select">
                            <option value="any" selected>不限</option>
                            <option value="highschool">高中及以下</option>
                            <option value="college">专科</option>
                            <option value="bachelor">本科</option>
                            <option value="master">硕士</option>
                            <option value="phd">博士及以上</option>
                        </select>
                    </div>
                </div>
                
                <!-- 活跃度筛选 -->
                <div class="filter-group">
                    <label class="filter-label">活跃度</label>
                    <div class="radio-group">
                        <div class="radio-item">
                            <input type="radio" name="activity" id="anyActivity" checked>
                            <label for="anyActivity">不限</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="activity" id="veryActive">
                            <label for="veryActive">非常活跃 (每天)</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="activity" id="active">
                            <label for="active">活跃 (每周)</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" name="activity" id="occasionally">
                            <label for="occasionally">偶尔活跃 (每月)</label>
                        </div>
                    </div>
                    
                    <div class="filter-group" style="margin-top: 1rem;">
                        <label class="filter-label">共同好友数量</label>
                        <input type="range" min="0" max="50" value="3" class="range-slider" id="friendsRange">
                        <div class="range-labels">
                            <span>0个</span>
                            <span id="friendsRangeValue">3个以上</span>
                            <span>50+个</span>
                        </div>
                    </div>
                </div>
                
                <!-- 关键词搜索 -->
                <div class="filter-group">
                    <label class="filter-label">关键词搜索</label>
                    <input type="text" class="filter-input" placeholder="输入昵称、标签或简介关键词">
                    
                    <div class="filter-group" style="margin-top: 1rem;">
                        <label class="filter-label">内容筛选</label>
                        <div class="checkbox-group">
                            <div class="checkbox-item">
                                <input type="checkbox" id="hasPhotos" checked>
                                <label for="hasPhotos">有照片的用户</label>
                            </div>
                            <div class="checkbox-item">
                                <input type="checkbox" id="verified">
                                <label for="verified">已认证用户</label>
                            </div>
                            <div class="checkbox-item">
                                <input type="checkbox" id="mutualInterests" checked>
                                <label for="mutualInterests">有共同兴趣</label>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="filter-actions">
                <button class="btn btn-light">
                    <i class="fas fa-sync-alt"></i> 重置筛选
                </button>
                <button class="btn btn-primary">
                    <i class="fas fa-filter"></i> 应用筛选
                </button>
                <button class="btn btn-secondary">
                    <i class="fas fa-save"></i> 保存筛选条件
                </button>
            </div>
        </div>
        
        <!-- 结果统计和排序 -->
        <div class="results-stats">
            <div class="results-count">找到 <strong>248</strong> 个符合条件的人</div>
            <div class="results-sort">
                <span class="sort-label">排序方式：</span>
                <select class="sort-select">
                    <option value="match">匹配度优先</option>
                    <option value="distance">距离最近</option>
                    <option value="recent">最近活跃</option>
                    <option value="popular">人气优先</option>
                    <option value="newest">最新加入</option>
                </select>
            </div>
        </div>
        
        <!-- 人际关系列表 -->
        <div class="connections-list">
            <!-- 联系人卡片1 -->
            <div class="connection-card">
                <div class="card-header">
                    <img src="https://picsum.photos/id/1035/300/300" alt="用户照片" class="card-image">
                </div>
                <div class="card-content">
                    <div class="card-meta">
                        <img src="https://picsum.photos/id/1012/40/40" alt="用户头像" class="user-avatar">
                        <div class="user-info">
                            <div class="user-name">李明</div>
                            <div class="user-title">音乐制作人</div>
                        </div>
                        <span class="connection-type">潜在好友</span>
                    </div>
                    
                    <div class="card-body">
                        <span class="similarity">87% 兴趣相似</span>
                        <p class="card-text">专注于独立音乐创作，擅长吉他和钢琴编曲，正在寻找志同道合的音乐伙伴一起创作和演出。</p>
                        
                        <div class="interests">
                            <span class="interest-tag">独立音乐</span>
                            <span class="interest-tag">吉他</span>
                            <span class="interest-tag">编曲</span>
                        </div>
                        
                        <div class="card-stats">
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>1.2km</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-users"></i>
                                <span>5个共同好友</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>245</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-actions">
                        <button class="btn btn-primary">
                            <i class="fas fa-user-plus"></i> 加为好友
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-comment"></i> 发消息
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 联系人卡片2 -->
            <div class="connection-card">
                <div class="card-header">
                    <div class="no-image">
                        <i class="fas fa-music"></i>
                    </div>
                </div>
                <div class="card-content">
                    <div class="card-meta">
                        <img src="https://picsum.photos/id/1027/40/40" alt="用户头像" class="user-avatar">
                        <div class="user-info">
                            <div class="user-name">张小艺</div>
                            <div class="user-title">声乐教师</div>
                        </div>
                        <span class="connection-type">潜在好友</span>
                    </div>
                    
                    <div class="card-body">
                        <span class="similarity">82% 兴趣相似</span>
                        <p class="card-text">专业声乐教师，擅长歌剧和古典音乐演唱，希望认识更多古典音乐爱好者，定期组织小型音乐分享会。</p>
                        
                        <div class="interests">
                            <span class="interest-tag">古典音乐</span>
                            <span class="interest-tag">声乐</span>
                            <span class="interest-tag">教学</span>
                        </div>
                        
                        <div class="card-stats">
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>3.5km</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-users"></i>
                                <span>2个共同好友</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>187</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-actions">
                        <button class="btn btn-primary">
                            <i class="fas fa-user-plus"></i> 加为好友
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-comment"></i> 发消息
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 联系人卡片3 -->
            <div class="connection-card">
                <div class="card-header">
                    <img src="https://picsum.photos/id/1073/300/300" alt="用户照片" class="card-image">
                </div>
                <div class="card-content">
                    <div class="card-meta">
                        <img src="https://picsum.photos/id/1074/40/40" alt="用户头像" class="user-avatar">
                        <div class="user-info">
                            <div class="user-name">王乐队</div>
                            <div class="user-title">黑胶唱片收藏家</div>
                        </div>
                        <span class="connection-type">好友的好友</span>
                    </div>
                    
                    <div class="card-body">
                        <span class="similarity">79% 兴趣相似</span>
                        <p class="card-text">黑胶唱片收藏爱好者，收藏有超过500张经典摇滚和爵士乐黑胶，定期举办黑胶唱片交换活动。</p>
                        
                        <div class="interests">
                            <span class="interest-tag">黑胶唱片</span>
                            <span class="interest-tag">摇滚</span>
                            <span class="interest-tag">爵士乐</span>
                        </div>
                        
                        <div class="card-stats">
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>4.8km</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-users"></i>
                                <span>7个共同好友</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>312</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-actions">
                        <button class="btn btn-primary">
                            <i class="fas fa-user-plus"></i> 加为好友
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-comment"></i> 发消息
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 联系人卡片4 -->
            <div class="connection-card">
                <div class="card-header">
                    <img src="https://picsum.photos/id/1059/300/300" alt="用户照片" class="card-image">
                </div>
                <div class="card-content">
                    <div class="card-meta">
                        <img src="https://picsum.photos/id/1062/40/40" alt="用户头像" class="user-avatar">
                        <div class="user-info">
                            <div class="user-name">刘DJ</div>
                            <div class="user-title">电子音乐制作人</div>
                        </div>
                        <span class="connection-type">好友的好友</span>
                    </div>
                    
                    <div class="card-body">
                        <span class="similarity">76% 兴趣相似</span>
                        <p class="card-text">专业电子音乐制作人和DJ，擅长House、Techno等风格，拥有多年俱乐部驻场经验。</p>
                        
                        <div class="interests">
                            <span class="interest-tag">电子音乐</span>
                            <span class="interest-tag">DJ</span>
                            <span class="interest-tag">音乐制作</span>
                        </div>
                        
                        <div class="card-stats">
                            <div class="stat-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>2.3km</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-users"></i>
                                <span>4个共同好友</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>428</span>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-actions">
                        <button class="btn btn-primary">
                            <i class="fas fa-user-plus"></i> 加为好友
                        </button>
                        <button class="btn btn-outline-primary">
                            <i class="fas fa-comment"></i> 发消息
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 分页 -->
        <div class="pagination-container">
            <ul class="pagination">
                <li class="page-item">
                    <a href="#" class="page-link">
                        <i class="fas fa-chevron-left"></i>
                    </a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link active">1</a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link">2</a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link">3</a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link">4</a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link">5</a>
                </li>
                <li class="page-item">
                    <a href="#" class="page-link">
                        <i class="fas fa-chevron-right"></i>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="row">
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">友趣</h3>
                    <p>友趣是一个基于兴趣的社交平台，帮助你找到志同道合的朋友，一起分享快乐，探索世界。</p>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">平台功能</h3>
                    <ul class="footer-links">
                        <li><a href="#">交友推荐</a></li>
                        <li><a href="#">兴趣小组</a></li>
                        <li><a href="#">活动中心</a></li>
                        <li><a href="#">兴趣测试</a></li>
                        <li><a href="#">话题讨论</a></li>
                    </ul>
                </div>
                
                <div class="col-md-2 footer-col">
                    <h3 class="footer-title">关于我们</h3>
                    <ul class="footer-links">
                        <li><a href="#">平台介绍</a></li>
                        <li><a href="#">团队成员</a></li>
                        <li><a href="#">加入我们</a></li>
                        <li><a href="#">联系方式</a></li>
                        <li><a href="#">用户反馈</a></li>
                    </ul>
                </div>
                
                <div class="col-md-4 footer-col">
                    <h3 class="footer-title">联系我们</h3>
                    <ul class="footer-links">
                        <li><i class="fas fa-envelope me-2"></i> contact@youqu.com</li>
                        <li><i class="fas fa-phone me-2"></i> 400-123-4567</li>
                        <li><i class="fas fa-map-marker-alt me-2"></i> 北京市朝阳区创意园区A座501</li>
                    </ul>
                </div>
            </div>
            
            <div class="copyright">
                &copy; 2023 友趣社交平台 版权所有 | 京ICP备12345678号
            </div>
        </div>
    </footer>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 筛选面板展开/收起功能
        const filterToggle = document.getElementById('filterToggle');
        const filterContent = document.getElementById('filterContent');
        
        filterToggle.addEventListener('click', function() {
            const icon = this.querySelector('i');
            const text = this.querySelector('span');
            
            if (filterContent.style.display === 'none') {
                filterContent.style.display = 'grid';
                icon.classList.remove('fa-chevron-down');
                icon.classList.add('fa-chevron-up');
                text.textContent = '收起筛选';
            } else {
                filterContent.style.display = 'none';
                icon.classList.remove('fa-chevron-up');
                icon.classList.add('fa-chevron-down');
                text.textContent = '展开筛选';
            }
        });
        
        // 距离范围滑块交互
        const distanceRange = document.getElementById('distanceRange');
        const rangeValue = document.getElementById('rangeValue');
        
        distanceRange.addEventListener('input', function() {
            rangeValue.textContent = this.value + '公里';
        });
        
        // 共同好友数量滑块交互
        const friendsRange = document.getElementById('friendsRange');
        const friendsRangeValue = document.getElementById('friendsRangeValue');
        
        friendsRange.addEventListener('input', function() {
            friendsRangeValue.textContent = this.value + '个以上';
        });
        
        // 筛选标签交互
        document.querySelectorAll('.filter-tag').forEach(tag => {
            tag.addEventListener('click', function() {
                this.classList.toggle('active');
            });
        });
        
        // 加为好友按钮交互
        document.querySelectorAll('.btn-primary').forEach(button => {
            if (button.innerHTML.includes('加为好友')) {
                button.addEventListener('click', function() {
                    this.innerHTML = '<i class="fas fa-check"></i> 请求已发送';
                    this.disabled = true;
                    this.classList.remove('btn-primary');
                    this.classList.add('btn-success');
                });
            }
        });
        
        // 保存的筛选标签删除功能
        document.querySelectorAll('.saved-filter-tag i.fas.fa-times').forEach(icon => {
            icon.addEventListener('click', function(e) {
                e.stopPropagation();
                this.closest('.saved-filter-tag').remove();
            });
        });
    </script>
</body>
</html>
    

